﻿	<!-- 列表按钮工具栏 -->
	<div class="padding border-bottom">
	    <input type="button" class="button button-small checkall"
	        name="checkall" checkfor="id" value="全选"/>
	    <input type="button" class="button button-small border-green"
	        value="添加" id="btn${entity.moduleUpperFirstChar}${entity.entityName}Create"/>
	    <input type="button" class="button button-small border-yellow"
	        value="批量删除" id="btn${entity.moduleUpperFirstChar}${entity.entityName}BatchDelete"/>
	</div>
	<!-- 列表 -->
	<table class="table table-hover">
	    <!-- 列表的列 -->
	    <tr>
	        <th width="45">选择</th>
	        #foreach($col in $entity.keys)
	        <th width="100">${col.fieldCN}</th>
	        #end
	        #foreach($col in $entity.columns)
	        <th width="100">${col.fieldCN}</th>
	        #end
	        #foreach ($r in $entity.relationsM21)
	        <th width="100">${r.sourceFieldCN}</th>
	        #end
	        <th width="*">操作</th>
	    </tr>
	    #set($prefix = "row.")
	    <!-- 列表的内容 -->
	    <tr th:each="row : ${pageData.rows}">
	        <td><input type="checkbox" name="${entity.keys.get(0).fieldName}" th:value="${${prefix}${entity.keys.get(0).fieldName}}"/></td>
	        #foreach($col in $entity.keys)
	        <td th:text="${${prefix}${col.fieldName}}"></td>
	        #end
	        #foreach($col in $entity.columns)
	        <td th:text="${${prefix}${col.fieldName}}"></td>
	        #end
	        #foreach ($r in $entity.relationsM21)
	        <td th:text="${${prefix}${r.sourceFieldName}${r.target.columns.get(0).fieldNameUpperFirstChar}}"></td>
	        #end
	        <td><a class="button border-blue button-little">修改</a>
	        </td>
	    </tr>
	</table>
	<div th:include="pager :: showPager(${pageData}, ${'${entity.moduleUpperFirstChar}${entity.entityName}'})"></div>